package com.xiaoyushu.user.relation.biz.constant;

public class RedisKeyConstants {

    private static final String USER_FOLLOWING_KAY_PREFIX="followingss:";

    /**
     * 粉丝列表 KEY 前缀
     */
    private static final String USER_FANS_KEY_PREFIX="fans:";


    /**
     *
     * @param userId
     * @return
     */
    public static String buildUserFollowingKey(Long userId){
        return USER_FOLLOWING_KAY_PREFIX+userId;
    }

    public static String buildUserFansKey(Long userId){
        return USER_FANS_KEY_PREFIX+userId;
    }
}
